package com.open.launcher.bean.allchannels;

import java.util.List;

/**
 * Created by legend on 18-5-26.
 */

public class AllChannel {

    /**
     * code : 200
     * status : success
     * time : 1535779240
     * data : [{"id":31,"name":"央视频道","sort":31,"lives":[{"id":37,"name":"CCTV4","number":37,"sources":["http://120.194.143.34:8180/TV00000000000000000004@HHZT;LIVE"]},{"id":35,"name":"CCTV2","number":35,"sources":["http://120.194.143.34:8180/TV00000000000000000002@HHZT;LIVE"]},{"id":34,"name":"CCTV1","number":34,"sources":["http://120.194.143.34:8180/TV00000000000000000001@HHZT;LIVE"]}]},{"id":26,"name":"地方高清","sort":26,"lives":[{"id":36,"name":"CCTV3","number":36,"sources":["http://120.194.143.34:8180/TV00000000000000000003@HHZT;LIVE"]}]},{"id":33,"name":"卫视频道","sort":33,"lives":[{"id":39,"name":"CCTV6","number":39,"sources":["http://120.194.143.34:8180/TV00000000000000000006@HHZT;LIVE"]},{"id":38,"name":"CCTV5","number":38,"sources":["http://120.194.143.34:8180/TV00000000000000000005@HHZT;LIVE"]}]}]
     */

    private int code;
    private String status;
    private String time;
    private List<DataBean> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * id : 31
         * name : 央视频道
         * sort : 31
         * lives : [{"id":37,"name":"CCTV4","number":37,"sources":["http://120.194.143.34:8180/TV00000000000000000004@HHZT;LIVE"]},{"id":35,"name":"CCTV2","number":35,"sources":["http://120.194.143.34:8180/TV00000000000000000002@HHZT;LIVE"]},{"id":34,"name":"CCTV1","number":34,"sources":["http://120.194.143.34:8180/TV00000000000000000001@HHZT;LIVE"]}]
         */

        private int id;
        private String name;
        private int sort;
        private List<LivesBean> lives;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public List<LivesBean> getLives() {
            return lives;
        }

        public void setLives(List<LivesBean> lives) {
            this.lives = lives;
        }

        public static class LivesBean {
            /**
             * id : 37
             * name : CCTV4
             * number : 37
             * sources : ["http://120.194.143.34:8180/TV00000000000000000004@HHZT;LIVE"]
             */

            private int id;
            private String name;
            private int number;
            private List<String> sources;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public int getNumber() {
                return number;
            }

            public void setNumber(int number) {
                this.number = number;
            }

            public List<String> getSources() {
                return sources;
            }

            public void setSources(List<String> sources) {
                this.sources = sources;
            }
        }
    }
}
